<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			#div2{
				border: 1px solid red;
				background-color: darkorchid;
				width: 200px;
				height: 200px;
				/*设置所有方向的边距*/
               /*marging: 100px;*/			
	           /*设置上下和左右的边距*/
				/*magging: 50px 100px;*/
				/*设置上右下左顺时针四个方向的间距*/
				/*magging: 10px 20px 30px 40px;*/
				/*或者*/
				margin-top:10px ;
				margin-right: 20px;
				margin-bottom: 30px;
				margin-left: 40px;
				
			}
		</style>
	</head>
	<body>
		<div id="div2">
			andjasn
		</div>
	</body>
</html>
